/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ubbcluj.dbmanagementserver.model;

import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author Bea
 */
@XmlType
public class ForeignKey {

    private List<String> fkAttributes;
    private List<Reference> references;

    public ForeignKey(List<String> fkAttributes, List<Reference> references) {
        this.fkAttributes = fkAttributes;
        this.references = references;
    }

    public List<String> getFkAttributes() {
        return fkAttributes;
    }

    @XmlElementWrapper
    @XmlElement(name = "fkAttribute")
    public void setFkAttributes(List<String> fkAttributes) {
        this.fkAttributes = fkAttributes;
    }

    public List<Reference> getReferences() {
        return references;
    }

    @XmlElementWrapper
    @XmlElement(name = "reference")
    public void setReferences(List<Reference> references) {
        this.references = references;
    }

}
